<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <f:verbatim>
        <link href="./resources/css/layout.css" rel="stylesheet" type="text/css" />
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />
        </f:verbatim>
        <title>Электронный учебно-методический комплекс</title>
    </h:head>
    <h:body>
        <div id="wrapper">
            <div id="top">
                <img src="./resources/logo.png" align="middle" id="logoImg" class="logo"/>
                <h:outputFormat styleClass="header" value="Электронный учебно-методический комплекс"/>
            </div>
            <div id="navigation">
                <h:form id="navigationForm">
                    <ul>
                        <li> <h:commandLink id="clHome" value="Факультеты" action="index.xhtml" styleClass="navLink"/> </li>
                        <li> <h:commandLink id="clDepartments" value="Кафедры" action="departments.xhtml" styleClass="navLink"/> </li>
                        <li> <h:commandLink id="clSpecialities" value="Специальности" action="specialities.xhtml" styleClass="navLink"/> </li>
                        <li> <h:commandLink id="clDisciplines" value="Дисциплины" action="disciplines.xhtml" styleClass="navLink"/> </li>
                    </ul>
                </h:form>
            </div>
            <div id="article">
                <h:form id="mainForm">
                    <h:commandButton value="Добавить" action="addFaculty.xhtml"/><br/>
                    <ui:repeat id="facList" value="#{facultiesBean.faculties}" var="faculty">
                        <h:commandLink value="#{faculty.facultyName}" action="departments.xhtml">
                            <f:param name="id" value="#{faculty.idfaculty}" />
                            <f:param name="title" value="#{faculty.facultyName}" />
                            <f:param name="shortName" value="#{faculty.shortName}" />
                        </h:commandLink>
                        <h:commandButton image="./resources/edit.png" action="editFaculty.xhtml">
                            <f:param name="id" value="#{faculty.idfaculty}" />
                            <f:param name="title" value="#{faculty.facultyName}" />
                            <f:param name="shortName" value="#{faculty.shortName}" />
                        </h:commandButton><br/>
                    </ui:repeat>
                </h:form>
            </div>
        </div>
    </h:body>
</html>

